<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form method="post" action="editHostelDetails.action?type=editroom">
	<table>
		<s:iterator value="rooms">
			<tr>
			<td>Room Id</td>
				<td><input type="hidden" name="room_id" value='<s:property value="room_id"/>'><s:property value="room_id"/></td>
			</tr>
			
			<tr>
				<td>Room Number</td>
				<td><input type="text" name="room_number" value='<s:property value="room_number"/>' /></td>
			</tr>
			<tr>
				<td>Description</td>
				<td><input type="text" name="description" value='<s:property value="description"/>' /></td>
			</tr>
			<tr>
				<td>Residential Name</td>
				<td><input type="hidden" name="residential_id" value='<s:property value="residential_id"/>'/><s:property value="residential_name"/></td>
			</tr>
			<tr>
				<td>Occupancy</td>
				<td><input type="text" name="occupancy" value='<s:property value="occupancy"/>' /></td>
			</tr>
			<tr>
				<td>Vacancy</td>
				<td><input type="text" name="vacancy" value='<s:property value="vacancy"/>' /></td>
			</tr>
		</s:iterator>
			<tr><td><input type="submit" value="Submit"/></td></tr>
	</table>
	</form>
</body>
</html>